<!--{subtemplate inc/header}-->
<style type="text/css">
#site-list .item .goweb{_background:none;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='{TPL_PATH}images/web-show.png',sizingMethod='scale');}
</style>
<div class="blank9"></div>
<div class="hbox">
	<div id="body-left" class="fl">
		<dl id="site-nav" name="site-nav">
			<dt>
				<ul>
					<!--{if CURRENT_CITY_PY == CHINA_CITY_PY}-->
					<li rel="city_site"><a href="javascript:;">本地团购</a></li>
					<li class="current" rel="all_site"><a href="javascript:;">所有团购</a></li>
					<!--{else}-->
					<li class="current" rel="city_site"><a href="javascript:;">本地团购</a></li>
					<li rel="all_site"><a href="javascript:;">所有团购</a></li>
					<!--{/if}-->
					<!--{if count($_FANWE['cache']['site']['bests']) > 0}-->
					<li rel="best_site"><a href="javascript:;">推荐团购</a></li>
					<!--{/if}-->
					<!--2011-03-03 begin-->
					<!--{loop $_FANWE['cache']['site_cate'] $site_cate}-->
					<!--{eval 
							loadCache('site_cate_'.$site_cate['id'].'_'.CURRENT_CITY_PY);
							$sc_sites = $_FANWE['cache']['site_cate_'.$site_cate['id'].'_'.CURRENT_CITY_PY];
						}-->
					<!--{if !empty($sc_sites) && count($sc_sites) > 0}-->
					<li rel="$site_cate[id]"><a href="javascript:;">{$site_cate[name]}</a></li>
					<!--{/if}-->
					<!--{/loop}-->
					<!--2011-03-03 end-->
				</ul>
			</dt>
			<!--2011-01-30 update begin-->
			<dd style="position:relative;" id="site-content-box">
				<div class="site-nav-item city-site-list{if CURRENT_CITY_PY == CHINA_CITY_PY} hidden{/if}" rel="city_site">
					<div class="city-list">
						<!--{loop $_FANWE['cache']['city']['all'] $city}-->
						<!--{if $city['py'] != CHINA_CITY_PY}-->
						<a href="javascript:;" {if $city['py'] == CURRENT_CITY_PY}class=" current"{/if} rel="$city[py]">$city[name]</a>
						<!--{/if}-->
						<!--{/loop}-->
					</div>
					<div class="site-items site-items-current">
					<!--{if CURRENT_CITY_PY != CHINA_CITY_PY}-->
						<h3>$_FANWE[current_city][name]地区团购网站导航</h3>
						<!--{eval $site_ids = $_FANWE['cache']['city_site_'.CURRENT_CITY_PY]['sites'];}-->
						<!--{loop $site_ids $site_id}-->
						<!--{eval $site = $_FANWE['cache']['site']['all']['s_'.$site_id];}-->
						<div class="sia" onmouseover="$(this).addClass('active');" onmouseout="$(this).removeClass('active');">
							<a class="siag" target="_blank" href="$site[url]" title="查看【$site[name]】详细" {if empty($site['name_color'])}style="color:{$site['name_color']}"{/if}>
								<!--{if !empty($site['name_style'])}-->
								<$site[name_style]>$site[name]</$site[name_style]>
								<!--{else}-->
								$site[name]
								<!--{/if}-->
							</a>
							<div>
								<!--{if $site['is_auth'] == 1}-->
								<span title="{lang auth}" class="auth"></span>
								<!--{/if}-->
								<a title="进入【$site[name]】" target="_blank" class="goweb" href="$site[go_url]">$site[name]</a>
							</div>
						</div>
						<!--{/loop}-->
					<!--{/if}-->
					</div>
				</div>
				<!--2011-01-30 update end-->
				<div class="site-nav-item{if CURRENT_CITY_PY != CHINA_CITY_PY} hidden{/if}" rel="all_site">
					<ul class="sites_py">
						<!--{eval $first = ' class="current"';}-->
						<!--{loop $_FANWE['cache']['site']['py'] $site_py $site_ids}-->
						<li $first><a href="#site_py_$site_py">$site_py</a></li>
						<!--{eval $first = '';}-->
						<!--{/loop}-->
					</ul>
					<!--{loop $_FANWE['cache']['site']['py'] $site_py $site_ids}-->
					<div class="site-items site-items-current" id="site_py_$site_py" name="site_py_$site_py">
						<h3>$site_py <a href="#site-nav"><img src="{TPL_PATH}images/top.gif" style="vertical-align:middle;"/></a></h3>
						<!--{loop $site_ids $site_id}-->
						<!--{eval $site = $_FANWE['cache']['site']['all']['s_'.$site_id];}-->
						<div class="sia" onmouseover="$(this).addClass('active');" onmouseout="$(this).removeClass('active');">
							<a class="siag" target="_blank" href="$site[url]" title="查看【$site[name]】详细" {if empty($site['name_color'])}style="color:{$site['name_color']}"{/if}>
								<!--{if !empty($site['name_style'])}-->
								<$site[name_style]>$site[name]</$site[name_style]>
								<!--{else}-->
								$site[name]
								<!--{/if}-->
							</a>
							<div>
								<!--{if $site['is_auth'] == 1}-->
								<span title="{lang auth}" class="auth"></span>
								<!--{/if}-->
								<a title="进入【$site[name]】" target="_blank" class="goweb" href="$site[go_url]">$site[name]</a>
							</div>
						</div>
						<!--{/loop}-->
					</div>
					<!--{/loop}-->
				</div>
				<!--{if count($_FANWE['cache']['site']['bests']) > 0}-->
				<div class="site-nav-item hidden" rel="best_site" style="padding:10px 0 0 0;">
					<div class="site-items site-items-current" id="site_py_$site_py" name="site_py_$site_py">
						<!--{loop $_FANWE['cache']['site']['bests'] $site_id}-->
						<!--{eval $site = $_FANWE['cache']['site']['all']['s_'.$site_id];}-->
						<div class="sia" onmouseover="$(this).addClass('active');" onmouseout="$(this).removeClass('active');">
							<a class="siag" target="_blank" href="$site[url]" title="查看【$site[name]】详细" {if empty($site['name_color'])}style="color:{$site['name_color']}"{/if}>
								<!--{if !empty($site['name_style'])}-->
								<$site[name_style]>$site[name]</$site[name_style]>
								<!--{else}-->
								$site[name]
								<!--{/if}-->
							</a>
							<div>
								<!--{if $site['is_auth'] == 1}-->
								<span title="{lang auth}" class="auth"></span>
								<!--{/if}-->
								<a title="进入【$site[name]】" target="_blank" class="goweb" href="$site[go_url]">$site[name]</a>
							</div>
						</div>
						<!--{/loop}-->
					</div>
				</div>
				<!--{/if}-->
				<!--2011-03-03 begin-->
				<!--{loop $_FANWE['cache']['site_cate'] $site_cate}-->
				<!--{eval $sc_sites = $_FANWE['cache']['site_cate_'.$site_cate['id'].'_'.CURRENT_CITY_PY]; }-->
				<!--{if !empty($sc_sites) && count($sc_sites) > 0}-->
				<div class="site-nav-item hidden" rel="{$site_cate[id]}" style="padding:10px 0 0 0;">
					<div class="site-items site-items-current">
						<!--{loop $sc_sites $sc_site_id}-->
						<div class="sia" onmouseover="$(this).addClass('active');" onmouseout="$(this).removeClass('active');">
							<!--{if $site_cate['site_type'] == 0}-->
							<!--{eval $site = $_FANWE['cache']['site']['all']['s_'.$sc_site_id];}-->
							<a class="siag" target="_blank" href="$site[url]" title="查看【$site[name]】详细" {if empty($site['name_color'])}style="color:{$site['name_color']}"{/if}>
								<!--{if !empty($site['name_style'])}-->
								<$site[name_style]>$site[name]</$site[name_style]>
								<!--{else}-->
								$site[name]
								<!--{/if}-->
							</a>
							<div>
								<!--{if $site['is_auth'] == 1}-->
								<span title="{lang auth}" class="auth"></span>
								<!--{/if}-->
								<a title="进入【$site[name]】" target="_blank" class="goweb" href="$site[go_url]">$site[name]</a>
							</div>
							<!--{else}-->
							<!--{eval $site = $_FANWE['cache']['site']['all_other']['s_'.$sc_site_id];}-->
							<a class="siag" target="_blank" href="$site[url]" title="进入【$site[name]】" {if empty($site['name_color'])}style="color:{$site['name_color']}"{/if}>
								<!--{if !empty($site['name_style'])}-->
								<$site[name_style]>$site[name]</$site[name_style]>
								<!--{else}-->
								$site[name]
								<!--{/if}-->
							</a>
							<div>
								<!--{if $site['is_auth'] == 1}-->
								<span title="{lang auth}" class="auth"></span>
								<!--{/if}-->
							</div>
							<!--{/if}-->
						</div>
						<!--{/loop}-->
					</div>
				</div>
				<!--{/if}-->
				<!--{/loop}-->
				<!--2011-03-03 end-->
				<div class="blank9"></div>
			</dd>
		</dl>
	</div>
	<div id="body-right" class="fr">
	<!--{subtemplate inc/common/right}-->
	</div>
</div>
<script type="text/javascript">
jQuery(function($){
	$("#site-nav dt li").click(function(){
		$("#site-nav dt li").removeClass('current');
		$(this).addClass('current');
		$(".site-nav-item").hide();
		$(".site-nav-item[rel='"+this.getAttribute('rel')+"']").show();
	});
	
	//2011-01-30 update
	$(".city-list a").click(function(){
		$(".city-list a").removeClass('current');
		$(this).addClass('current');
		$.showLoading("#site-content-box");
		$.ajax({
			type: "GET",
			dataType: "html",
			url: SITE_PATH + "/services/ajax.php",
			data:{"action":"get_city_sites","city_py":this.getAttribute('rel')},
			success: function(html){
				$(".city-site-list .site-items").html(html);
				$.closeLoading("#site-content-box");
			}
		});
	});
});
</script>
<!--{subtemplate inc/footer}-->